package com.jsh.erp.feign.system;

import com.jsh.erp.datasource.entities.DepotHead;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

@FeignClient(name="jsh-system", path="/jshERP-boot/remote/api/depotHead", contextId = "DepotHeadRemote")
public interface DepotHeadRemote {
    @GetMapping("/getAccountSum")
     BigDecimal getAccountSum(@RequestParam("id") Long id,@RequestParam("timeStr")  String timeStr,@RequestParam("type")  String type);

    @GetMapping("/getManyAccountSum")
     BigDecimal getManyAccountSum(@RequestParam("id") Long id, @RequestParam("timeStr") String timeStr, @RequestParam("type") String type);

    @GetMapping("/getDepotHeadListByAccountIds")
    List<DepotHead> getDepotHeadListByAccountIds(@RequestParam("accountIds") String[] accountIds);

    @GetMapping("/getDepotHead")
    public DepotHead getDepotHead(@RequestParam("number") String number)throws Exception;
}
